]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: Send activation token when launching Tecla
authorSebastian Keller <skeller@gnome.org>
Fri, 10 Apr 2026 20:26:53 +0000 (22:26 +0200)
committerSebastian Keller <skeller@gnome.org>
Fri, 10 Apr 2026 20:38:14 +0000 (22:38 +0200)
This ensures the window will be correctly focused, even when using
strict focus mode.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4165>

js/ui/status/keyboard.js

index 72d15e604a8280044953a06de9771ce03c87d11c..4f7471ef5a558d8ec18d49fdef04240b849527dc 100644 (file)
@@ -15,7 +15,6 @@ import * as Main from '../main.js';
 import * as PopupMenu from '../popupMenu.js';
 import * as PanelMenu from '../panelMenu.js';
 import * as SwitcherPopup from '../switcherPopup.js';
-import * as Util from '../../misc/util.js';
 
 export const INPUT_SOURCE_TYPE_XKB = 'xkb';
 export const INPUT_SOURCE_TYPE_IBUS = 'ibus';
@@ -1177,8 +1176,10 @@ class InputSourceIndicator extends PanelMenu.Button {
     }
 
     _showLayout() {
-        Main.overview.hide();
+        const app =
+            Shell.AppSystem.get_default().lookup_app('org.gnome.Tecla.desktop');
 
-        Util.spawn(['tecla']);
+        Main.overview.hide();
+        app?.activate();
     }
 });